package cc.dd.marketing.core.domain;

import cc.dd.marketing.rule.base.Rule;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

/**
 * 数据库包装的业务对象
 *
 * @author dongsufeng
 * @date 2022/9/9 11:51 AM
 */
public abstract class RuleInnerDTO implements Serializable {
    /**
     * 活动规则集合
     */
    private List<Rule> rules;

    private Boolean execute = true;

    public List<Rule> getRules() {
        return rules;
    }

    public void setRules(List<Rule> rules) {
        this.rules = rules;
    }


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SIMPLE_STYLE);
    }

    public Boolean getExecute() {
        return execute;
    }

    public void setExecute(Boolean execute) {
        this.execute = execute;
    }
}
